package chouxiang2;
/*
* 继承抽象类，要重写抽象类里面的所有方法
* */
public class cat2 extends animal2{
    public cat2(String name, int age) {
        super(name, age);
    }

    public cat2() {
    }

    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }
}